import { http } from "@/utils/http";
import type { BannerItem, CategoryItem, HotItem, GuessItem } from '../type/home'
import type { PageResult,PageParams } from '@/types/global'
export const reqBanner = (distributionSite = 1) => {
  return http<BannerItem[]>({
    url: '/home/banner',
    method: 'GET',
    data: {
      distributionSite
    }
  })
}
export const reqCategory = () => {
  return http<CategoryItem[]>({
    url: '/home/category/mutli',
    method: 'GET',
  })
}
export const reqHot = () => {
  return http<HotItem[]>({
    url: '/home/hot/mutli',
    method: "GET"
  })
}
export const reqGuessLike = (data?:PageParams) => {
  return http<PageResult<GuessItem>>({
    url: '/home/goods/guessLike',
    method: "GET",
    data
  })
}
